/**
 * kl yy-ds @2021
 */
package com.cxps.cloud.base;

import lombok.Data;

import java.util.List;

/**
 * 树形结构数据
 *
 * @author YouCai.Liu
 * @since 2021/10/23
 * ...
 */
@Data
public class MyTree {

    private String id;
    private String pid;
    private String value;
    private String label;
    private List<MyTree> children;

    public MyTree(){}

    public MyTree(String id, String pid, String label){
        this.id = id;
        this.pid = pid;
        this.label = label;
    }

    public MyTree(String id, String pid, String label, String value){
        this.id = id;
        this.pid = pid;
        this.label = label;
        this.value = value;
    }
}
